<style>
    .sp_result_area{
        z-index: 9999999999999 !important;
    }
</style>
<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('express/order/edit')}" 
                           data-operate-del="{:$auth->check('express/order/del')}" 
                           width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>

<script type="text/html" id="addBatchTpl">
    <form id="addBatchTpl-form" class="form-horizontal form-layer" method="POST" action="{:url('express/order/addBatch')}">
        <div class="form-body">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-3">选择方式:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="radio">
                        <label for="row[type]-new"><input id="row[type]-new" name="row[type]" type="radio" value="new" checked=""> 创建新的批次</label>
                        <label for="row[type]-old"><input id="row[type]-old" name="row[type]" type="radio" value="old"> 选择已有批次</label>
                    </div>
                </div>
            </div>
            <input type="hidden" id="c-ids" name="row[ids]" value="">
            <div class="form-group batch-select hide">
                <label class="control-label col-xs-12 col-sm-3">选择批次:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-batch"  data-source="express/batch/index" data-format-item="#selectpageTpl" data-field="batch_no" data-order-by="id desc"  class="form-control selectpage" name="row[batch_id]" type="text" value="">
                </div>
            </div>
        </div>
        <div class="form-footer">
            <div class="form-group" style="margin-bottom:0;">
                <label class="control-label col-xs-12 col-sm-3"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-md btn-info">提交</button>
                </div>
            </div>
        </div>
    </form>
</script>
<script type="text/html" id="selectpageTpl">
    <%=batch_no%>  <span class="text-gray">(<%=createtime_text%>)</span>
</script>

